<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>

<div class="list" id="userAside">
	<p>
		<s:text name="aside.userManagement" />
	</p>
	<ul>
		<!-- common actions -->
		<li><s:a href="showAllUsers?">
				<s:text name="aside.allUsers" />
			</s:a></li>


		<s:if test="#session.user.role > 1">
			<!-- administrator-only actions -->
			<li><s:a href="addNewUser?">
					<s:text name="aside.addUser" />
				</s:a></li>

			<li><s:a href="deleteUser?">
					<s:text name="aside.deleteUser" />
				</s:a></li>

			<li><s:a href="sendEmail?">
					<s:text name="aside.sendEmail" />
				</s:a></li>


		</s:if>


		<s:else>
			<!-- user-only actions -->
		</s:else>
		
		<!-- common actions -->
		<li><s:a href="modifyProfile?">
				<s:text name="aside.modifyProfile" />
			</s:a></li>
	</ul>
</div>